﻿namespace Device.Read.API.Dtos
{
    /// <summary>
    /// 返回类型
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class ApiResult<T>
    {
        /// <summary>
        /// 返回状态码
        /// </summary>
        public int Code { get; set; } = 0;
        /// <summary>
        /// 返回的信息
        /// </summary>
        public string Message { get; set; } = string.Empty;
        /// <summary>
        /// 根据需要返回对应的结果数据
        /// </summary>
        public T Data { get; set; }
    }
}
